{% extends "admin/base_site.html" %}
{% load adminmedia admin_list i18n %}
{% load select_list %}

{% block extrastyle %}
  {{ block.super }}
  <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/changelists.css" />
  <script src="{{STATIC_URL}}js/jquery-1.3.2.js" type="text/javascript"></script>
  {% include "django_relatedcontent/js/django_relatedcontent.js" %}
  <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}css/django_relatedcontent.css" />
  {{ media }}
{% endblock %}

{% block bodyclass %}change-list{% endblock %}

{% block coltype %}flex{% endblock %}

{% block content %}
  <div id="content-main">
    <div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
      {% block search %}{% search_form cl %}{% endblock %}
      {% block date_hierarchy %}{% date_hierarchy cl %}{% endblock %}

      {% block filters %}
        {% if cl.has_filters %}
          <div id="changelist-filter">
            <h2>{% trans 'Filter' %}</h2>
            {% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %}
          </div>
        {% endif %}
      {% endblock %}

      {% block result_list %}
          {% select_result_list cl mode %}
      {% endblock %}
      {% block pagination %}{% pagination cl %}{% endblock %}
    </div>
  </div>
{% endblock %}